-- GENERATED SPELL FOR [Crazed Indu'le Survivor] --


function spell0_32409(pUnit, Event) --@Crazed,Self--
pUnit:FullCastSpellOnTarget(48139,pUnit)
pUnit:RegisterEvent('Sorts_32409', 10000, 1)
end

function spell1_32409(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(39171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32409', 5311, 1)
end

function Sorts_32409(pUnit, Event)
local choix_sorts_32409 = math.random(0, 1)
if choix_sorts_32409 == 0 then
pUnit:RegisterEvent('spell0_32409', 1, 1)
end
if choix_sorts_32409 == 1 then
pUnit:RegisterEvent('spell1_32409', 1, 1)
end
end

function mob32409_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32409', math.random(1500, 3000), 1)
end

function mob32409_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32409_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32409_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32409, 1, 'mob32409_Action')
RegisterUnitEvent(32409, 2, 'mob32409_Leave')
RegisterUnitEvent(32409, 3, 'mob32409_Kill')
RegisterUnitEvent(32409, 4, 'mob32409_Die')
